<template lang="pug">
  .Bscroll(ref="bswrap")
    slot
</template>

<script>
import Bscroll from 'better-scroll'
export default {
  data(){
    return{
      scroll:null
    }
  },
  methods:{
    init(){
      this.scroll = new Bscroll(this.$refs.bswrap,{
        click:true,
        probeType:3
      })
    }
  },
  mounted(){
    setTimeout(()=>{
      this.init()
    },600)
  }
}
</script>

<style scoped lang="scss">

</style>